package cn.lyd.utils.asserts;

import org.springframework.stereotype.Component;

@Component
public class AssertUtil {

    /**
     * 判断字符串是否为空
     * @param key
     * @return
     */
    public boolean StringIsNull(String key){
        if (key==null && key.equalsIgnoreCase("")){
            return true;
        }else {
            return false;
        }
    }


    /**
     * 判断字符串不为空
     * @param key
     * @return
     */
    public boolean StringNotNull(String key){
        boolean b = this.StringIsNull(key);
        return b==true?false:true;
    }






}
